<?php
// set YII_DEBUG to TRUE if user IP is trusted
$devIPs = array('127.0.0.1', '125.234.32.118');
if (in_array($_SERVER['REMOTE_ADDR'], $devIPs))
    defined('YII_DEBUG') or define('YII_DEBUG', true);

// change the following paths if necessary
$yii = dirname(__FILE__) . '/../../yii-1.1.8.r3324/framework/yii.php';
$config = dirname(__FILE__) . '/protected/config/main.php';

// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
if (YII_DEBUG) {
    set_time_limit(0);
    error_reporting(E_ALL);
    ini_set('display_errors', 1);
}

require_once($yii);
Yii::createWebApplication($config)->run();
